<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
	<title></title>
	<link rel="stylesheet" type="text/css" href="__PUBLIC__/Admin/css/common.css">
</head>
<body>
	<div class='status'>
		<span>修改分类</span><a  class='back' href="<?php echo U('index');?>"><strong>返回分类列表<b></b></strong></a>
	</div>
	<div>
		<form method='post' action="<?php echo U('runUpdateCate');?>">
			<table class='table' cellspacing='0px' cellpadding='0px'>
				<tr ><th colspan='2'>修改分类</th></tr>
				<tr><td>名称：</td><td class='td_left'><input type='text' class='text' name='name' value="<?php echo ($c["name"]); ?>"/></td></tr>
				<tr>
					<td>所属类型：</td>
					<td class='td_left'>
						<select name='tid' class='select'>
						<option>请选择</option>
						<?php if(is_array($data)): foreach($data as $key=>$v): ?><option value='<?php echo ($v["id"]); ?>' <?php if($c['tid']==$v['id']): ?>selected='selected'<?php endif; ?>><?php echo ($v["name"]); ?></option><?php endforeach; endif; ?>
						</select>
					</td>
				</tr>
				<tr><td colspan='2' class='td_center'><input type='hidden' name='id' value="<?php echo ($_GET['id']); ?>"/>
					<input type='submit' class='add_btn' value='保存修改'/>
				</td></tr>
			</table>
		</form>
	</div>
</body>
</html>